package com.ifeng.igps.model;

import android.os.Parcel;
import android.os.Parcelable;

public class RunRecord implements Parcelable {
	private String recordId;
	private String userId;
	private String runDate;
	private String totalDistance;
	private String timeConsuming;
	private String averageSpeed;
	private String stepsNumber;

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(recordId);
		dest.writeString(userId);
		dest.writeString(runDate);
		dest.writeString(totalDistance);
		dest.writeString(timeConsuming);
		dest.writeString(averageSpeed);
		dest.writeString(stepsNumber);
	}

	private RunRecord(Parcel in) {
		recordId = in.readString();
		userId = in.readString();
		runDate = in.readString();
		totalDistance = in.readString();
		timeConsuming = in.readString();
		averageSpeed = in.readString();
		stepsNumber = in.readString();
	}

	public RunRecord() {
	}

	public static final Parcelable.Creator<RunRecord> CREATOR = new Parcelable.Creator<RunRecord>() {
		public RunRecord createFromParcel(Parcel in) {
			return new RunRecord(in);
		}

		public RunRecord[] newArray(int size) {
			return new RunRecord[size];
		}
	};

	public String getRecordId() {
		return recordId;
	}

	public void setRecordId(String recordId) {
		this.recordId = recordId;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getRunDate() {
		return runDate;
	}

	public void setRunDate(String runDate) {
		this.runDate = runDate;
	}

	public String getTotalDistance() {
		return totalDistance;
	}

	public void setTotalDistance(String totalDistance) {
		this.totalDistance = totalDistance;
	}

	public String getTimeConsuming() {
		return timeConsuming;
	}

	public void setTimeConsuming(String timeConsuming) {
		this.timeConsuming = timeConsuming;
	}

	public String getAverageSpeed() {
		return averageSpeed;
	}

	public void setAverageSpeed(String averageSpeed) {
		this.averageSpeed = averageSpeed;
	}

	public String getStepsNumber() {
		return stepsNumber;
	}

	public void setStepsNumber(String stepsNumber) {
		this.stepsNumber = stepsNumber;
	}

}
